package com.depot.sys.web;

import com.depot.domains.Users;
import com.opensymphony.xwork2.ModelDriven;
import com.soar.BaseActionSupport;
import com.soar.context.Environment;
import com.soar.senv.SoarProperties;

/**
 * @author zhangaoxiang
 * @version $Revision$ - $Author$ at $Date$
 */
public class UserLogoutAction extends BaseActionSupport implements ModelDriven<Users>
{
	private static final long serialVersionUID = 1L;

	public Users domain = new Users();


	public String execute(Environment env) throws Exception
	{
		env.getRequest().getSession().removeAttribute(SoarProperties.SOAR_BM_LOGINUSER_SESSION_ID);
		return "login";
	}

	public Users getModel()
	{
		return this.domain;
	}
}
